package com.yuju.group.enums;

/**
 * 
 * 类名：hotelReturnCodeEnum  <br />
 *
 * 功能：功能：酒店集团编码业务代码枚举
 *
 * @author : sunyl <br />
 * @Date : 2017年11月23日 上午10:40:51  <br />
 * @version : 1.1 <br />
 */
public enum SeqCodeReturnCodeEnum {
	SEQ_GROUP_SAVE_SUCCESS("yuju-seq-1000", "集团编码初始化成功"),
	SEQ_GROUP_SAVE_FAILURE("yuju-seq-1001", "集团编码初始化失败"),
	SEQ_HOTEL_SAVE_SUCCESS("yuju-seq-1002", "酒店编码初始化成功"),
	SEQ_HOTEL_SAVE_FAILURE("yuju-seq-1003", "酒店编码初始化失败");
	
	private String code;
	private String desc;
	
	SeqCodeReturnCodeEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDescByCode(String code) {
		for (SeqCodeReturnCodeEnum enume : SeqCodeReturnCodeEnum.values()) {
			if (enume.getCode().equals(code)) {
				return enume.getDesc();
			}
		}
		
		return "未知枚举类型";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}